package com.liushuai.eas.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.liushuai.eas.mapper.BuildingMapper;
import com.liushuai.eas.pojo.Building;
import com.liushuai.eas.pojo.Classes;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

@Service
public class BuildingImp implements BuildingMapper {

    @Resource
    private BuildingMapper buildingMapper;

    @Override
    public int insert(Building entity) {
        return buildingMapper.insert(entity);
    }

    @Override
    public int deleteById(Serializable id) {
        return buildingMapper.deleteById(id);
    }

    @Override
    public int deleteById(Building entity) {
        return buildingMapper.deleteById(entity);
    }

    @Override
    public int deleteByMap(Map<String, Object> columnMap) {
        return 0;
    }

    @Override
    public int delete(Wrapper<Building> queryWrapper) {
        return buildingMapper.delete(queryWrapper);
    }

    @Override
    public int deleteBatchIds(Collection<?> idList) {
        return 0;
    }

    @Override
    public int updateById(Building entity) {
        return buildingMapper.updateById(entity);
    }

    @Override
    public int update(Building entity, Wrapper<Building> updateWrapper) {
        return 0;
    }

    @Override
    public Building selectById(Serializable id) {
        return buildingMapper.selectById(id);
    }

    @Override
    public List<Building> selectBatchIds(Collection<? extends Serializable> idList) {
        return null;
    }

    @Override
    public List<Building> selectByMap(Map<String, Object> columnMap) {
        return null;
    }

    @Override
    public Building selectOne(Wrapper<Building> queryWrapper) {
        return buildingMapper.selectOne(queryWrapper);
    }

    @Override
    public Long selectCount(Wrapper<Building> queryWrapper) {
        return null;
    }

    @Override
    public List<Building> selectList(Wrapper<Building> queryWrapper) {
        return buildingMapper.selectList(queryWrapper);
    }

    @Override
    public List<Map<String, Object>> selectMaps(Wrapper<Building> queryWrapper) {
        return null;
    }

    @Override
    public List<Object> selectObjs(Wrapper<Building> queryWrapper) {
        return null;
    }

    @Override
    public <P extends IPage<Building>> P selectPage(P page, Wrapper<Building> queryWrapper) {
        return buildingMapper.selectPage(page,queryWrapper);
    }

    @Override
    public <P extends IPage<Map<String, Object>>> P selectMapsPage(P page, Wrapper<Building> queryWrapper) {
        return null;
    }

    @Override
    public Building selectOne(Integer id) {
        return buildingMapper.selectOne(id);
    }
}
